﻿@model SchoolManagerMVC.Repository.EntityFramework.Student

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Details</h2>

<fieldset>
    <legend>Student</legend>

    @Html.ActionLink("My Courses", "StudentsCourses", "Enrollment", new { id = Model.UniqueID }, null)    

    <div class="display-label">First Name</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FirstName)
    </div>

    <div class="display-label">Last Name</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LastName)
    </div>

    <div class="display-label">Age</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Age)
    </div>

    <div class="display-label">Tuition Owed</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TuitionOwed)
    </div>

    
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.UniqueID }) |
    @Html.ActionLink("Enroll in Course", "Index","Enrollment", new { id=Model.UniqueID },null) |
    @Html.ActionLink("Back to List", "Index")
</p>